<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8">
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/common/jquery-1.9.1.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/common/jquery.validate.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/designer/designer_changeInfo.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/common/upLoadImage.js"></script>
<link
	href="${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath}/css/regularUser/commonUser_changeInfo.css"
	rel="stylesheet">
<title></title>
</head>

<body>
	<form action="${pageContext.request.contextPath}/user/changeInfo.do"
		method="post" enctype="multipart/form-data" class="addForm">
		<div class="image">
			<div id="preview">
				<img id="imghead" border=0
					src="${pageContext.request.contextPath}/${user.photo_link}"
					width="180px" height="180px" />
			</div>
			<input type="file" name="photo_pic" onchange="previewImage(this)" />
		</div>
		<div class="info">
			<div class="addPhoto">
				<span>用户名：</span>&nbsp;&nbsp;&nbsp;&nbsp; <input type="text"
					name="user.username" disabled="disabled" value="${username}"
					style="width: 201px" /> <input type="hidden" name="id"
					value="${id}"> <input type="hidden" name="photo_link"
					value="${user.photo_link}">
			</div>

			<div class="addPhoto">
				<span>邮箱地址：</span>&nbsp; <input type="text" class="input"
					name="email" value="${user.email}" style="width: 160px;" />
			</div>

			<div class="addPhoto">
				<span>手机：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
					type="text" class="input" name="phone" value="${user.phone}"
					style="width: 160px;" />
			</div>

			<div class="addPhoto"
				style="position: relative;bottom: -118px;">
				<button class="btn btn-info" value="submit">提交</button>
			</div>
		</div>
	</form>
</body>

</html>